package com.edu.design.decorator.payment;

public class PaymentTest {
	
	public static void paymentAli(){
		PaymentInit paymentInit = new AlipayInit(new FinalPaymentInit());
		paymentInit.init();
	}
	
	public static void paymentWechat(){
		PaymentInit paymentInit = new WechatInit(new FinalPaymentInit());
		paymentInit.init();
	}
	
	public static void main(String[] args) {
		paymentAli();
		paymentWechat();
	}

}
